# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-pybloom
pkgver=1.1
pkgrel=3
pkgdesc='A Probabilistic data structure.'
url='https://pypi.python.org/pypi/pybloom/'
depends=('python2' 'python2-bitarray')
makedepends=('python2-setuptools')
license=('MIT')
arch=('any')
source=("https://pypi.python.org/packages/source/p/pybloom/pybloom-$pkgver.tar.gz")
sha512sums=('cb5d735daaef6883bda34953d25b17fb32c59adf454af459e000ffc270ac8a3fecd7a56376e027d1722b31e96a6c0ec998de7c35a28e840d5190be6566d96fbe')

build() {
  cd "pybloom-$pkgver"

  python2 setup.py build
}

package() {
  cd "pybloom-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

